<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的推荐人-<?php echo $cfg_webname;?></title>
<link href="<?php echo $cfg_basehost;?>/css/v2_index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.superslide.2.1.1.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $cfg_basehost;?>/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
/*我的推荐人*/
.yxw-wd-tjr{text-align:center;padding:20px 0;}
.yxw-wd-tjr img{display:block;margin:0 auto;width:100px;height:100px;border-radius:50%;}
.yxw-wd-tjr p{line-height:22px;font-size:16px;color:#333;padding-top:10px;}

/*无内容时显示*/
.m-yxw-cs-wushuju{padding:30px 0;}
.m-yxw-cs-wushuju img{width:100px;height:100%;margin:0 auto;display:block;}
.m-yxw-cs-wushuju .wu-sc-title{text-align:center;font-size:14px;color:#757575;padding-top:10px;}
</style>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm");?>

<div class="container">

<!-- 会员中心左侧 -->
<div class="user-container">
<div class="uc-box uc-sub-box">


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">会员中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><?php if ($cfg_ml->M_Rank > 10){echo '<a href="buyhui.php" >续费会员</a>';} else{echo '<a href="buyhui.php">开通会员</a>';} ?></li>
<li><a href="operation.php">会员订单</a></li>
</ul>
</div>
</div>

<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">课程中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="operation_ke.php">已购课程</a></li>
</ul>
</div>
</div>

<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">我的收藏</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="mystow.php">收藏课程</a></li>
</ul>
</div>
</div>


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">推广中心</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li class="active"><a href="zqtui.php">推广主页</a></li>
<li><a href="zqtui.php?a=tixian">我要提现</a></li>
</ul>
</div>
</div>


<div class="uc-nav-box">
<div class="box-hd"><h3 class="title">账号管理</h3></div>
<div class="box-bd">
<ul class="uc-nav-list">
<li><a href="/user/">个人信息</a></li>
<li><a href="edit_user.php">修改昵称</a></li>
<li><a href="edit_baseinfo.php">修改密码</a></li>
</ul>
</div>
</div>

</div>
</div>
<!-- 会员中心左侧 End -->


<!-- 右侧功能定位 -->
<div class="user-right">
<div class="uc-box uc-main-box">
<div class="uc-content-box order-list-box">
<div class="box-hd"><h1 class="title">我的推荐人</h1></div>
<div class="box-operation">

<!-- 收益/推广人数 -->
<?php
if($cfg_ml->fields['tjrmid'] > 0){
$tjr = $dsql->GetOne("select face,uname from #@__member where mid = '".$cfg_ml->fields['tjrmid']."'");
if(empty($tjr['face'])){$tjr['face'] = '/static/web/img/avatar.png';}
?>
<!-- 我的推荐人 -->
<div class="yxw-wd-tjr">
<img src="<?php echo mstrone($tjr['face']);?>">
<p><?php echo $tjr['uname'];?></p>
</div>
<!-- 我的推荐人 End -->
<?php    
}else{
?>
<!-- 无内容时显示 -->
<div class="m-yxw-cs-wushuju">
<img src="<?php echo $mcfg_basehost;?>/m-images/kc-wu-sc.png">
<p class="wu-sc-title">您没有推荐人</p>
</div>
<!-- 无内容时显示 End -->
<?php 
}
?>
<!-- 收益/推广人数 End -->

</div>
</div>
</div>
</div>
<!-- 右侧功能定位 End -->

</div>

<?php include(DEDEMEMBER."/templets/footer.htm");?>

<script>
if($(".m-kc-shoucang").length < 1 ){ 
$(".yxw-wd-tjr").show();
}
</script>

</body>
</html>